//C:9.2:file1.cpp -- example of a three-file program
#include <iostream>
#include "coordin.h"    // struture template, function prototypes
using namespace std;

int main(void)
{
    rect rplace;
    polar pplace;

    cout << "Enter the x and values: ";
    while(cin >> rplace.x >> rplace.y)    // slick use of cin
    {
        pplace = rect_to_polar(rplace);
        show_polar(pplace);
        cout << "Next two numbers (q to quit): ";
    }

    cout << "Bye!\n";
    return 0;
}